You may also write a unit test using JDepend 
so you can keep an eye on design quality.

See the commented out testDistance() in code.